package com.qidian.by.cms.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qidian.by.cms.dto.CategoryDTO;
import com.qidian.by.pojo.ContentCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小可怎么都睡不够
 * @since 2024-05-06
 */
public interface ContentCategoryMapper extends BaseMapper<ContentCategory> {
    ContentCategory queryCategoryByParentIdAndCatName(@Param("parentId")Long parentId,@Param("catName") String catName);

    void recoverCategory(ContentCategory contentCategory);
    ContentCategory queryCategoryByName(@Param("catName")String catName);
}
